<style>
    td {
        border: 1px solid #D9E4EB;
    }

    th {
        border: 1px solid #D9E4EB;
        text-align: center;
    }
</style>
<form id="set_devices_info" style="margin: 10px">
    <div style="margin:10px 20px;"></div>
    <table cellspacing="8" cellPadding="4" width="100%">
        <input type="hidden" name="device_id" value="<{$device_info.device_id}>">
        <tr>
            <td width="100">设备名称：</td>
            <td><input class="easyui-validatebox" type="text"  name="name" value="<{$device_info.name}>" style="width:auto"/>
            </td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">设备编号：</td>
            <td><input class="easyui-validatebox" type="text"data-options="required:true"  name="codeserial" value="<{$device_info.codeserial}>"
                       style="width:auto"/></td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">设备类型：</td>
            <td>
                <select name="device_category" style="width:150px;" class="easyui-combobox" panelMaxHeight="200px"
                        data-options="editable:true,panelHeight:'auto'">
                    <option value="-1">请选择设备类型</option>
                    <volist name="device_categroy_config" id="name">
                        <if condition="$device_info['device_category']==$key">
                            <option value="<{$key}>" selected><{$name}></option>
                            <else/>
                            <option value="<{$key}>"><{$name}></option>
                        </if>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">设备型号：</td>
            <td>
                <select name="device_type" style="width:150px;" class="easyui-combobox" panelMaxHeight="200px"
                        data-options="editable:true,panelHeight:'auto',required:true">
                    <option value="-1">请选择设备型号</option>
                    <volist name="device_types_config" id="name">
                        <if condition="$device_info['device_type']==$key">
                            <option value="<{$key}>" selected><{$name}></option>
                            <else/>
                            <option value="<{$key}>"><{$name}></option>
                        </if>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">巡检周期：</td>
            <td>
                <select name="check_cycle" style="width:150px;" class="easyui-combobox" panelMaxHeight="200px"
                        data-options="editable:true,panelHeight:'auto',required:true">
                    <option value="-1">请选巡检周期</option>
                    <volist name="check_cycle_config" id="name">
                        <if condition="$device_info['check_cycle']==$key">
                            <option value="<{$key}>" selected><{$name}> 天</option>
                            <else/>
                            <option value="<{$key}>"><{$name}> 天</option>
                        </if>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">所属场所：</td>
            <td>
                <select name="place_id" style="width:150px;" class="easyui-combobox" panelMaxHeight="200px"
                        data-options="editable:true,panelHeight:'auto'">
                    <option value="-1">请选择所属场所</option>
                    <volist name="place_config" id="name">
                        <if condition="$device_info['place_id']==$key">
                            <option value="<{$key}>" selected><{$name}></option>
                            <else/>
                            <option value="<{$key}>"><{$name}></option>
                        </if>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">设备地址：</td>
            <td><input class="easyui-validatebox" data-options="required:true" type="text" name="device_address" value="<{$device_info.device_address}>"
                       style="width:auto"/></td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">联系人：</td>
            <td><input class="easyui-textbox" type="text" name="manager" value="<{$device_info.manager}>" data-options="required:true"
                       style="width:auto"/></td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">联系电话：</td>
            <td><input class="easyui-textbox" type="text" name="manager_phone" value="<{$device_info.manager_phone}>" data-options="required:true"
                       style="width:auto"/></td>
        </tr>
        <tr>
            <td width="100">第二联系人电话：</td>
            <td><input class="easyui-textbox" type="text" name="contacts_phone" value="<{$device_info.contacts_phone}>"
                       style="width:auto"/></td>
        </tr>
        <tr>
            <td width="100" class="nboit-validatebox">场所坐标：</td>
            <td>
                <input type="hidden" name="position" id="position" value="<{$device_info.position}>">
                <iframe src="<{$map_url}>" frameborder="0" width="100%" height="200px"></iframe>
            </td>
        </tr>
    </table>

</form>
